/**
 * Project Name:Micro-Services-Common
 * File Name   :Slf4jLogger.java
 * Package Name:com.micro.services.common.logger.slf4j
 * Date:2015年9月8日上午12:30:16
 * Copyright (c) 2015, http://my.oschina.net/httpssl All Rights Reserved.
 *
*/

package com.micro.services.common.logger.slf4j;

import java.io.Serializable;

import com.micro.services.common.logger.Logger;

/**
 * ClassName:Slf4jLogger <br/>
 * Function :TODO ADD FUNCTION. <br/>
 * Reason	:学习Dubbo而来. <br/>
 * Date     :2015年9月8日 上午12:30:16 <br/>
 * @author  :http://my.oschina.net/httpssl
 * @email   :491835898@QQ.COM
 * @since   :JDK 1.7
 * @see 	 
 */
public class Slf4jLogger implements Logger,Serializable
{
	/**
	 * serialVersionUID:TODO（用一句话描述这个变量表示什么）
	 */
	
	private static final long serialVersionUID = 3217935709027588624L;
	
	private final org.slf4j.Logger logger;

	public Slf4jLogger(org.slf4j.Logger logger) {
		this.logger = logger;
	}

	@Override
	public void trace(String msg) {
		// TODO Auto-generated method stub
		logger.trace(msg);
	}

	@Override
	public void trace(Throwable e) {
		// TODO Auto-generated method stub
		logger.trace(e.getMessage(), e);
	}

	@Override
	public void trace(String msg, Throwable e) {
		// TODO Auto-generated method stub
		logger.trace(msg, e);
	}

	@Override
	public void debug(String msg) {
		// TODO Auto-generated method stub
		logger.debug(msg);
	}

	@Override
	public void debug(Throwable e) {
		// TODO Auto-generated method stub
		logger.debug(e.getMessage(),e);
	}

	@Override
	public void debug(String msg, Throwable e) {
		// TODO Auto-generated method stub
		logger.debug(msg,e);
	}

	@Override
	public void info(String msg) {
		// TODO Auto-generated method stub
		logger.info(msg);
	}

	@Override
	public void info(Throwable e) {
		// TODO Auto-generated method stub
		logger.info(e.getMessage(),e);
	}

	@Override
	public void info(String msg, Throwable e) {
		// TODO Auto-generated method stub
		logger.info(msg,e);
	}

	@Override
	public void warn(String msg) {
		// TODO Auto-generated method stub
		logger.warn(msg);
	}

	@Override
	public void warn(Throwable e) {
		// TODO Auto-generated method stub
		logger.warn(e.getMessage(),e);
	}

	@Override
	public void warn(String msg, Throwable e) {
		// TODO Auto-generated method stub
		logger.warn(msg, e);
	}

	@Override
	public void error(String msg) {
		// TODO Auto-generated method stub
		logger.error(msg);
	}

	@Override
	public void error(Throwable e) {
		// TODO Auto-generated method stub
		logger.error(e.getMessage(),e);
	}

	@Override
	public void error(String msg, Throwable e) {
		// TODO Auto-generated method stub
		logger.error(msg,e);
	}

	@Override
	public boolean isTraceEnabled() {
		// TODO Auto-generated method stub
		return logger.isTraceEnabled();
	}

	@Override
	public boolean isDebugEnabled() {
		// TODO Auto-generated method stub
		return logger.isDebugEnabled();
	}

	@Override
	public boolean isInfoEnabled() {
		// TODO Auto-generated method stub
		return logger.isInfoEnabled();
	}

	@Override
	public boolean isWarnEnabled() {
		// TODO Auto-generated method stub
		return logger.isWarnEnabled();
	}

	@Override
	public boolean isErrorEnabled() {
		// TODO Auto-generated method stub
		return logger.isErrorEnabled();
	}

}